package com.xtayfjpk.thymeleaf.test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
public class ThymeleafController {

	@RequestMapping({"/test.html"})
	public ModelAndView test() {
		ModelAndView mav = new ModelAndView("test");
		mav.addObject("name", "SpringVMC");
		return mav;
	}
}
